﻿using Domain.Entities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Domain.IRepositories
{

    public interface IArticleRepository : IRepository<Article>
    {
        Article GetById(Int32 id);

        IQueryable<Article> GetAll(string key);
        IQueryable<Article> GetAll(int typeid);

        IQueryable<Article> GetPageList(int typeid, int step, string userId, string disable, string SearchKeyWords, int PageSize, int PageCurrent, string OrderField, bool OrderDirection = true);
        bool AddOrUpdate(Article model);

        bool DeleteById(int id);
    }
}
